package smart.rpc.producer.service;

import org.springframework.stereotype.Service;
import smart.rpc.producer.contract.dto.HelloDTO;
import smart.rpc.producer.contract.facade.ISmartRPCTestService;

/**
 * Created By gao_e on 2020/3/8 9:44
 */
@Service
public class SmartRPCTestService implements ISmartRPCTestService {
    @Override
    public HelloDTO hello(String name) {
        HelloDTO helloDTO = new HelloDTO();
        helloDTO.setHello("Hello " + name);
        helloDTO.setName(name);
        return helloDTO;
    }

    @Override
    public Integer add(Integer a, Integer b) {
        return a + b;
    }
}
